(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[11,77],{110:function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return o}));var n=r(45);const c=(e=[],t,r,c="")=>{const o=e.filter((e=>e.attribute===r.taxonomy)),a=o.length?o[0]:null;if(!(a&&a.slug&&Array.isArray(a.slug)&&a.slug.includes(c)))return;const i=a.slug.filter((e=>e!==c)),l=e.filter((e=>e.attribute!==r.taxonomy));i.length>0&&(a.slug=i.sort(),l.push(a)),t(Object(n.a)(l).asc("attribute"))},o=(e=[],t,r,c=[],o="in")=>{if(!r||!r.taxonomy)return[];const a=e.filter((e=>e.attribute!==r.taxonomy));return 0===c.length?t(a):(a.push({attribute:r.taxonomy,operator:o,slug:c.map((({slug:e})=>e)).sort()}),t(Object(n.a)(a).asc("attribute"))),a}},119:function(e,t,r){"use strict";r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var n=r(2);r(140),r(5);const c=Object(n.getSetting)("attributes",[]).reduce(((e,t)=>{const r=(n=t)&&n.attribute_name?{id:parseInt(n.attribute_id,10),name:n.attribute_name,taxonomy:"pa_"+n.attribute_name,label:n.attribute_label}:null;var n;return r&&r.id&&e.push(r),e}),[]),o=e=>{if(e)return c.find((t=>t.id===e))},a=e=>{if(e)return c.find((t=>t.taxonomy===e))}},139:function(e){e.exports=JSON.parse('{"name":"woocommerce/active-filters","version":"1.0.0","title":"Active Filters Controls","description":"Display the currently active filters.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"html":false,"multiple":false,"inserter":false,"color":{"text":true,"background":false},"lock":false},"attributes":{"displayStyle":{"type":"string","default":"list"},"headingLevel":{"type":"number","default":3}},"textdomain":"woocommerce","apiVersion":2,"$schema":"https://schemas.wp.org/trunk/block.json"}')},140:function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return i}));var n=r(20);const c=e=>Object(n.b)(e,"count")&&Object(n.b)(e,"description")&&Object(n.b)(e,"id")&&Object(n.b)(e,"name")&&Object(n.b)(e,"parent")&&Object(n.b)(e,"slug")&&"number"==typeof e.count&&"string"==typeof e.description&&"number"==typeof e.id&&"string"==typeof e.name&&"number"==typeof e.parent&&"string"==typeof e.slug,o=e=>Array.isArray(e)&&e.every(c),a=e=>Object(n.b)(e,"attribute")&&Object(n.b)(e,"operator")&&Object(n.b)(e,"slug")&&"string"==typeof e.attribute&&"string"==typeof e.operator&&Array.isArray(e.slug)&&e.slug.every((e=>"string"==typeof e)),i=e=>Array.isArray(e)&&e.every(a)},158:function(e,t,r){"use strict";var n=r(0),c=r(1),o=r(31),a=r(2),i=r(4),l=r.n(i),s=r(19),u=r(64),b=r(20),f=r(140),d=r(67),p=r(61);r(228);var m=r(119),O=r(43),j=r(53),y=r(23),g=r(110),v=({attributeObject:e,slugs:t=[],operator:r="in",displayStyle:i,isLoadingCallback:l})=>{const{results:s,isLoading:b}=Object(j.a)({namespace:"/wc/store/v1",resourceName:"products/attributes/terms",resourceValues:[e.id]}),[d,p]=Object(o.b)("attributes",[]);if(Object(n.useEffect)((()=>{l(b)}),[b,l]),!Array.isArray(s)||!Object(f.c)(s)||!Object(f.a)(d))return null;const m=e.label,v=Object(a.getSettingWithCoercion)("isRenderingPhpTemplate",!1,u.a);return Object(n.createElement)("li",null,Object(n.createElement)("span",{className:"wc-block-active-filters__list-item-type"},m,":"),Object(n.createElement)("ul",null,t.map(((t,o)=>{const a=s.find((e=>e.slug===t));if(!a)return null;let l="";return o>0&&"and"===r&&(l=Object(n.createElement)("span",{className:"wc-block-active-filters__list-item-operator"},Object(c.__)("All","woocommerce"))),Object(O.f)({type:m,name:Object(y.decodeEntities)(a.name||t),prefix:l,isLoading:b,removeCallback:()=>{const r=d.find((({attribute:t})=>t===`pa_${e.name}`));1===(null==r?void 0:r.slug.length)?Object(O.e)(`query_type_${e.name}`,`filter_${e.name}`):Object(O.e)({[`filter_${e.name}`]:t}),v||Object(g.a)(d,p,e,t)},showLabel:!1,displayStyle:i})}))))},h=({displayStyle:e,isLoading:t})=>t?Object(n.createElement)(n.Fragment,null,[...Array("list"===e?2:3)].map(((t,r)=>Object(n.createElement)("li",{className:"list"===e?"show-loading-state-list":"show-loading-state-chips",key:r},Object(n.createElement)("span",{className:"show-loading-state__inner"}))))):null,_=r(48);t.a=({attributes:e,isEditor:t=!1})=>{const r=Object(_.b)(),i=function(){const e=Object(n.useRef)(!1);return Object(n.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),Object(n.useCallback)((()=>e.current),[])}()(),j=Object(a.getSettingWithCoercion)("isRenderingPhpTemplate",!1,u.a),[y,g]=Object(n.useState)(!0),w=Object(O.c)()&&!t&&y,[k,E]=Object(o.b)("attributes",[]),[S,N]=Object(o.b)("stock_status",[]),[A,x]=Object(o.b)("min_price"),[C,R]=Object(o.b)("max_price"),[L,F]=Object(o.b)("rating"),T=Object(a.getSetting)("stockStatusOptions",[]),Q=Object(a.getSetting)("attributes",[]),P=Object(n.useMemo)((()=>{if(w||0===S.length||(t=S,!Array.isArray(t)||!t.every((e=>["instock","outofstock","onbackorder"].includes(e))))||!(e=>Object(b.a)(e)&&Object.keys(e).every((e=>["instock","outofstock","onbackorder"].includes(e))))(T))return null;var t;const r=Object(c.__)("Stock Status","woocommerce");return Object(n.createElement)("li",null,Object(n.createElement)("span",{className:"wc-block-active-filters__list-item-type"},r,":"),Object(n.createElement)("ul",null,S.map((t=>Object(O.f)({type:r,name:T[t],removeCallback:()=>{if(Object(O.e)({filter_stock_status:t}),!j){const e=S.filter((e=>e!==t));N(e)}},showLabel:!1,displayStyle:e.displayStyle})))))}),[w,T,S,N,e.displayStyle,j]),$=Object(n.useMemo)((()=>w||!Number.isFinite(A)&&!Number.isFinite(C)?null:Object(O.f)({type:Object(c.__)("Price","woocommerce"),name:Object(O.b)(A,C),removeCallback:()=>{Object(O.e)("max_price","min_price"),j||(x(void 0),R(void 0))},displayStyle:e.displayStyle})),[w,A,C,e.displayStyle,x,R,j]),z=Object(n.useMemo)((()=>!Object(f.a)(k)&&i||!k.length&&!Object(O.g)(Q)?(y&&g(!1),null):k.map((t=>{const r=Object(m.b)(t.attribute);return r?Object(n.createElement)(v,{attributeObject:r,displayStyle:e.displayStyle,slugs:t.slug,key:t.attribute,operator:t.operator,isLoadingCallback:g}):(y&&g(!1),null)}))),[k,i,Q,y,e.displayStyle]);Object(n.useEffect)((()=>{var e;if(!j)return;if(L.length&&L.length>0)return;const t=null===(e=Object(d.d)("rating_filter"))||void 0===e?void 0:e.toString();t&&F(t.split(","))}),[j,L,F]);const B=Object(n.useMemo)((()=>{if(w||0===L.length||(t=L,!Array.isArray(t)||!t.every((e=>["1","2","3","4","5"].includes(e)))))return null;var t;const r=Object(c.__)("Rating","woocommerce");return Object(n.createElement)("li",null,Object(n.createElement)("span",{className:"wc-block-active-filters__list-item-type"},r,":"),Object(n.createElement)("ul",null,L.map((t=>Object(O.f)({type:r,name:Object(c.sprintf)(/* translators: %s is referring to the average rating value */
Object(c.__)("Rated %s out of 5","woocommerce"),t),removeCallback:()=>{if(Object(O.e)({rating_filter:t}),!j){const e=L.filter((e=>e!==t));F(e)}},showLabel:!1,displayStyle:e.displayStyle})))))}),[w,L,F,e.displayStyle,j]);if(!w&&!(k.length>0||S.length>0||L.length>0||Number.isFinite(A)||Number.isFinite(C))&&!t)return r(!1),null;const W=`h${e.headingLevel}`,Y=Object(n.createElement)(W,{className:"wc-block-active-filters__title"},e.heading),V=w?Object(n.createElement)(p.a,null,Y):Y;if(!Object(a.getSettingWithCoercion)("hasFilterableProducts",!1,u.a))return r(!1),null;r(!0);const D=l()("wc-block-active-filters__list",{"wc-block-active-filters__list--chips":"chips"===e.displayStyle,"wc-block-active-filters--loading":w});return Object(n.createElement)(n.Fragment,null,!t&&e.heading&&V,Object(n.createElement)("div",{className:"wc-block-active-filters"},Object(n.createElement)("ul",{className:D},t?Object(n.createElement)(n.Fragment,null,Object(O.f)({type:Object(c.__)("Size","woocommerce"),name:Object(c.__)("Small","woocommerce"),displayStyle:e.displayStyle}),Object(O.f)({type:Object(c.__)("Color","woocommerce"),name:Object(c.__)("Blue","woocommerce"),displayStyle:e.displayStyle})):Object(n.createElement)(n.Fragment,null,Object(n.createElement)(h,{isLoading:w,displayStyle:e.displayStyle}),$,P,z,B)),w?Object(n.createElement)("span",{className:"wc-block-active-filters__clear-all-placeholder"}):Object(n.createElement)("button",{className:"wc-block-active-filters__clear-all",onClick:()=>{Object(O.a)(),j||(x(void 0),R(void 0),E([]),N([]),F([]))}},Object(n.createElement)(s.a,{label:Object(c.__)("Clear All","woocommerce"),screenReaderLabel:Object(c.__)("Clear All Filters","woocommerce")}))))}},19:function(e,t,r){"use strict";var n=r(0),c=r(4),o=r.n(c);t.a=({label:e,screenReaderLabel:t,wrapperElement:r,wrapperProps:c={}})=>{let a;const i=null!=e,l=null!=t;return!i&&l?(a=r||"span",c={...c,className:o()(c.className,"screen-reader-text")},Object(n.createElement)(a,{...c},t)):(a=r||n.Fragment,i&&l&&e!==t?Object(n.createElement)(a,{...c},Object(n.createElement)("span",{"aria-hidden":"true"},e),Object(n.createElement)("span",{className:"screen-reader-text"},t)):Object(n.createElement)(a,{...c},e))}},20:function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return o}));var n=r(38);const c=e=>!Object(n.a)(e)&&e instanceof Object&&e.constructor===Object;function o(e,t){return c(e)&&t in e}},22:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(0);const c=Object(n.createContext)("page"),o=()=>Object(n.useContext)(c);c.Provider},225:function(e,t){},227:function(e,t,r){"use strict";var n=r(0),c=r(10);const o=Object(n.createElement)(c.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},Object(n.createElement)(c.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));t.a=o},228:function(e,t){},237:function(e,t,r){"use strict";var n=r(0),c=r(4),o=r.n(c),a=r(1),i=r(76),l=r(227);r(225);var s=({text:e,screenReaderText:t="",element:r="li",className:c="",radius:a="small",children:i=null,...l})=>{const s=r,u=o()(c,"wc-block-components-chip","wc-block-components-chip--radius-"+a),b=Boolean(t&&t!==e);return Object(n.createElement)(s,{className:u,...l},Object(n.createElement)("span",{"aria-hidden":b,className:"wc-block-components-chip__text"},e),b&&Object(n.createElement)("span",{className:"screen-reader-text"},t),i)};t.a=({ariaLabel:e="",className:t="",disabled:r=!1,onRemove:c=(()=>{}),removeOnAnyClick:u=!1,text:b,screenReaderText:f="",...d})=>{const p=u?"span":"button";if(!e){const t=f&&"string"==typeof f?f:b;e="string"!=typeof t?/* translators: Remove chip. */
Object(a.__)("Remove","woocommerce"):Object(a.sprintf)(/* translators: %s text of the chip to remove. */
Object(a.__)('Remove "%s"',"woocommerce"),t)}const m={"aria-label":e,disabled:r,onClick:c,onKeyDown:e=>{"Backspace"!==e.key&&"Delete"!==e.key||c()}},O=u?m:{},j=u?{"aria-hidden":!0}:m;return Object(n.createElement)(s,{...d,...O,className:o()(t,"is-removable"),element:u?"button":d.element,screenReaderText:f,text:b},Object(n.createElement)(p,{className:"wc-block-components-chip__remove",...j},Object(n.createElement)(i.a,{className:"wc-block-components-chip__remove-icon",icon:l.a,size:16})))}},27:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),c=r(14),o=r.n(c);function a(e){const t=Object(n.useRef)(e);return o()(e,t.current)||(t.current=e),t.current}},286:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(){return n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var c in t=arguments[r])Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c]);return e},n.apply(this,arguments)};Object.create,Object.create},287:function(e,t,r){"use strict";function n(e){return e.toLowerCase()}r.d(t,"a",(function(){return a}));var c=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],o=/[^A-Z0-9]+/gi;function a(e,t){void 0===t&&(t={});for(var r=t.splitRegexp,a=void 0===r?c:r,l=t.stripRegexp,s=void 0===l?o:l,u=t.transform,b=void 0===u?n:u,f=t.delimiter,d=void 0===f?" ":f,p=i(i(e,a,"$1\0$2"),s,"\0"),m=0,O=p.length;"\0"===p.charAt(m);)m++;for(;"\0"===p.charAt(O-1);)O--;return p.slice(m,O).split("\0").map(b).join(d)}function i(e,t,r){return t instanceof RegExp?e.replace(t,r):t.reduce((function(e,t){return e.replace(t,r)}),e)}},29:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>"string"==typeof e},290:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(286),c=r(287);function o(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),Object(c.a)(e,Object(n.a)({delimiter:"."},t))}(e,Object(n.a)({delimiter:"-"},t))}},291:function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(4),c=r.n(n),o=r(20),a=r(29),i=r(290),l=r(132);function s(e={}){const t={};return Object(l.getCSSRules)(e,{selector:""}).forEach((e=>{t[e.key]=e.value})),t}function u(e,t){return e&&t?`has-${Object(i.a)(t)}-${e}`:""}const b=e=>{const t=(e=>{const t=Object(o.a)(e)?e:{style:{}};let r=t.style;return Object(a.a)(r)&&(r=JSON.parse(r)||{}),Object(o.a)(r)||(r={}),{...t,style:r}})(e),r=function(e){var t,r,n,a,i,l,b;const{backgroundColor:f,textColor:d,gradient:p,style:m}=e,O=u("background-color",f),j=u("color",d),y=function(e){if(e)return`has-${e}-gradient-background`}(p),g=y||(null==m||null===(t=m.color)||void 0===t?void 0:t.gradient);return{className:c()(j,y,{[O]:!g&&!!O,"has-text-color":d||(null==m||null===(r=m.color)||void 0===r?void 0:r.text),"has-background":f||(null==m||null===(n=m.color)||void 0===n?void 0:n.background)||p||(null==m||null===(a=m.color)||void 0===a?void 0:a.gradient),"has-link-color":Object(o.a)(null==m||null===(i=m.elements)||void 0===i?void 0:i.link)?null==m||null===(l=m.elements)||void 0===l||null===(b=l.link)||void 0===b?void 0:b.color:void 0}),style:s({color:(null==m?void 0:m.color)||{}})}}(t),n=function(e){var t;const r=(null===(t=e.style)||void 0===t?void 0:t.border)||{};return{className:function(e){var t;const{borderColor:r,style:n}=e,o=r?u("border-color",r):"";return c()({"has-border-color":!!r||!(null==n||null===(t=n.border)||void 0===t||!t.color),[o]:!!o})}(e),style:s({border:r})}}(t),i=function(e){var t;return{className:void 0,style:s({spacing:(null===(t=e.style)||void 0===t?void 0:t.spacing)||{}})}}(t),l=(e=>{const t=Object(o.a)(e.style.typography)?e.style.typography:{},r=Object(a.a)(t.fontFamily)?t.fontFamily:"";return{className:e.fontFamily?`has-${e.fontFamily}-font-family`:r,style:{fontSize:e.fontSize?`var(--wp--preset--font-size--${e.fontSize})`:t.fontSize,fontStyle:t.fontStyle,fontWeight:t.fontWeight,letterSpacing:t.letterSpacing,lineHeight:t.lineHeight,textDecoration:t.textDecoration,textTransform:t.textTransform}}})(t);return{className:c()(l.className,r.className,n.className,i.className),style:{...l.style,...r.style,...n.style,...i.style}}}},31:function(e,t,r){"use strict";r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return d}));var n=r(3),c=r(5),o=r(0),a=r(14),i=r.n(a),l=r(27),s=r(54),u=r(22);const b=e=>{const t=Object(u.a)();e=e||t;const r=Object(c.useSelect)((t=>t(n.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)),[e]),{setValueForQueryContext:a}=Object(c.useDispatch)(n.QUERY_STATE_STORE_KEY);return[r,Object(o.useCallback)((t=>{a(e,t)}),[e,a])]},f=(e,t,r)=>{const a=Object(u.a)();r=r||a;const i=Object(c.useSelect)((c=>c(n.QUERY_STATE_STORE_KEY).getValueForQueryKey(r,e,t)),[r,e]),{setQueryValue:l}=Object(c.useDispatch)(n.QUERY_STATE_STORE_KEY);return[i,Object(o.useCallback)((t=>{l(r,e,t)}),[r,e,l])]},d=(e,t)=>{const r=Object(u.a)();t=t||r;const[n,c]=b(t),a=Object(l.a)(n),f=Object(l.a)(e),d=Object(s.a)(f),p=Object(o.useRef)(!1);return Object(o.useEffect)((()=>{i()(d,f)||(c(Object.assign({},a,f)),p.current=!0)}),[a,f,d,c]),p.current?[n,c]:[e,c]}},38:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>null===e},4:function(e,t,r){var n;!function(){"use strict";var r={}.hasOwnProperty;function c(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var a=c.apply(null,n);a&&e.push(a)}}else if("object"===o)if(n.toString===Object.prototype.toString)for(var i in n)r.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(c.default=c,e.exports=c):void 0===(n=function(){return c}.apply(t,[]))||(e.exports=n)}()},43:function(e,t,r){"use strict";r.d(t,"b",(function(){return p})),r.d(t,"f",(function(){return m})),r.d(t,"e",(function(){return O})),r.d(t,"a",(function(){return g})),r.d(t,"c",(function(){return v})),r.d(t,"g",(function(){return h})),r.d(t,"d",(function(){return _}));var n=r(0),c=r(1),o=r(39),a=r(237),i=r(19),l=r(15),s=r(67),u=r(76),b=r(227),f=r(29),d=r(139);const p=(e,t)=>Number.isFinite(e)&&Number.isFinite(t)?Object(c.sprintf)(/* translators: %1$s min price, %2$s max price */
Object(c.__)("Between %1$s and %2$s","woocommerce"),Object(o.formatPrice)(e),Object(o.formatPrice)(t)):Number.isFinite(e)?Object(c.sprintf)(/* translators: %s min price */
Object(c.__)("From %s","woocommerce"),Object(o.formatPrice)(e)):Object(c.sprintf)(/* translators: %s max price */
Object(c.__)("Up to %s","woocommerce"),Object(o.formatPrice)(t)),m=({type:e,name:t,prefix:r="",removeCallback:o=(()=>null),showLabel:l=!0,displayStyle:s})=>{const f=r?Object(n.createElement)(n.Fragment,null,r," ",t):t,d=Object(c.sprintf)(/* translators: %s attribute value used in the filter. For example: yellow, green, small, large. */
Object(c.__)("Remove %s filter","woocommerce"),t);return Object(n.createElement)("li",{className:"wc-block-active-filters__list-item",key:e+":"+t},l&&Object(n.createElement)("span",{className:"wc-block-active-filters__list-item-type"},e+": "),"chips"===s?Object(n.createElement)(a.a,{element:"span",text:f,onRemove:o,radius:"large",ariaLabel:d}):Object(n.createElement)("span",{className:"wc-block-active-filters__list-item-name"},Object(n.createElement)("button",{className:"wc-block-active-filters__list-item-remove",onClick:o},Object(n.createElement)(u.a,{className:"wc-block-components-chip__remove-icon",icon:b.a,size:16}),Object(n.createElement)(i.a,{screenReaderLabel:d})),f))},O=(...e)=>{if(!window)return;const t=window.location.href,r=Object(l.getQueryArgs)(t),n=Object(l.removeQueryArgs)(t,...Object.keys(r));e.forEach((e=>{if("string"==typeof e)return delete r[e];if("object"==typeof e){const t=Object.keys(e)[0],n=r[t].toString().split(",");r[t]=n.filter((r=>r!==e[t])).join(",")}}));const c=Object.fromEntries(Object.entries(r).filter((([,e])=>e))),o=Object(l.addQueryArgs)(n,c);Object(s.c)(o)},j=["min_price","max_price","rating_filter","filter_","query_type_"],y=e=>{let t=!1;for(let r=0;j.length>r;r++){const n=j[r];if(n===e.substring(0,n.length)){t=!0;break}}return t},g=()=>{if(!window)return;const e=window.location.href,t=Object(l.getQueryArgs)(e),r=Object(l.removeQueryArgs)(e,...Object.keys(t)),n=Object.fromEntries(Object.keys(t).filter((e=>!y(e))).map((e=>[e,t[e]]))),c=Object(l.addQueryArgs)(r,n);Object(s.c)(c)},v=()=>{if(!window)return!1;const e=window.location.href,t=Object(l.getQueryArgs)(e),r=Object.keys(t);let n=!1;for(let e=0;r.length>e;e++){const t=r[e];if(y(t)){n=!0;break}}return n},h=e=>{if(!window)return!1;const t=e.map((e=>`filter_${e.attribute_name}`)),r=window.location.href,n=Object(l.getQueryArgs)(r),c=Object.keys(n);let o=!1;for(let e=0;c.length>e;e++){const r=c[e];if(t.includes(r)){o=!0;break}}return o},_=e=>({heading:Object(f.a)(null==e?void 0:e.heading)?e.heading:"",headingLevel:Object(f.a)(null==e?void 0:e.headingLevel)&&parseInt(e.headingLevel,10)||d.attributes.headingLevel.default,displayStyle:Object(f.a)(null==e?void 0:e.displayStyle)&&e.displayStyle||d.attributes.displayStyle.default})},45:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=function(e){return function(t,r,n){return e(t,r,n)*n}},c=function(e,t){if(e)throw Error("Invalid sort config: "+t)},o=function(e){var t=e||{},r=t.asc,o=t.desc,a=r?1:-1,i=r||o;return c(!i,"Expected `asc` or `desc` property"),c(r&&o,"Ambiguous object with `asc` and `desc` config properties"),{order:a,sortBy:i,comparer:e.comparer&&n(e.comparer)}};function a(e,t,r){if(void 0===e||!0===e)return function(e,n){return t(e,n,r)};if("string"==typeof e)return c(e.includes("."),"String syntax not allowed for nested properties."),function(n,c){return t(n[e],c[e],r)};if("function"==typeof e)return function(n,c){return t(e(n),e(c),r)};if(Array.isArray(e)){var n=function(e){return function t(r,n,c,a,i,l,s){var u,b;if("string"==typeof r)u=l[r],b=s[r];else{if("function"!=typeof r){var f=o(r);return t(f.sortBy,n,c,f.order,f.comparer||e,l,s)}u=r(l),b=r(s)}var d=i(u,b,a);return(0===d||null==u&&null==b)&&n.length>c?t(n[c],n,c+1,a,i,l,s):d}}(t);return function(c,o){return n(e[0],e,1,r,t,c,o)}}var i=o(e);return a(i.sortBy,i.comparer||t,i.order)}var i=function(e,t,r,n){return Array.isArray(t)?(Array.isArray(r)&&r.length<2&&(r=r[0]),t.sort(a(r,n,e))):t};function l(e){var t=n(e.comparer);return function(r){var n=Array.isArray(r)&&!e.inPlaceSorting?r.slice():r;return{asc:function(e){return i(1,n,e,t)},desc:function(e){return i(-1,n,e,t)},by:function(e){return i(1,n,e,t)}}}}var s=function(e,t,r){return null==e?r:null==t?-r:typeof e!=typeof t?typeof e<typeof t?-1:1:e<t?-1:e>t?1:0},u=l({comparer:s});l({comparer:s,inPlaceSorting:!0})},486:function(e,t,r){"use strict";r.r(t);var n=r(0),c=r(4),o=r.n(c),a=r(291),i=r(29),l=r(158),s=r(43);t.default=e=>{const t=Object(a.a)(e),r=Object(s.d)(e);return Object(n.createElement)("div",{className:o()(Object(i.a)(e.className)?e.className:"",t.className),style:t.style},Object(n.createElement)(l.a,{isEditor:!1,attributes:r}))}},53:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(3),c=r(5),o=r(0),a=r(27);const i=e=>{const{namespace:t,resourceName:r,resourceValues:i=[],query:l={},shouldSelect:s=!0}=e;if(!t||!r)throw new Error("The options object must have valid values for the namespace and the resource properties.");const u=Object(o.useRef)({results:[],isLoading:!0}),b=Object(a.a)(l),f=Object(a.a)(i),d=(()=>{const[,e]=Object(o.useState)();return Object(o.useCallback)((t=>{e((()=>{throw t}))}),[])})(),p=Object(c.useSelect)((e=>{if(!s)return null;const c=e(n.COLLECTIONS_STORE_KEY),o=[t,r,b,f],a=c.getCollectionError(...o);if(a){if(!(a instanceof Error))throw new Error("TypeError: `error` object is not an instance of Error constructor");d(a)}return{results:c.getCollection(...o),isLoading:!c.hasFinishedResolution("getCollection",o)}}),[t,r,f,b,s]);return null!==p&&(u.current=p),u.current}},54:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(0);function c(e,t){const r=Object(n.useRef)();return Object(n.useEffect)((()=>{r.current===e||t&&!t(e,r.current)||(r.current=e)}),[e,t]),r.current}},61:function(e,t,r){"use strict";var n=r(0);r(89),t.a=({children:e})=>Object(n.createElement)("div",{className:"wc-block-filter-title-placeholder"},e)},64:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));const n=e=>"boolean"==typeof e},67:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return l})),r.d(t,"d",(function(){return s})),r.d(t,"c",(function(){return u})),r.d(t,"e",(function(){return b}));var n=r(15),c=r(2),o=r(64);const a=Object(c.getSettingWithCoercion)("isRenderingPhpTemplate",!1,o.a),i="query_type_",l="filter_";function s(e){return window?Object(n.getQueryArg)(window.location.href,e):null}function u(e){a?((e=e.replace(/(?:query-(?:\d+-)?page=(\d+))|(?:page\/(\d+))/g,"")).endsWith("?")&&(e=e.slice(0,-1)),window.location.href=e):window.history.replaceState({},"",e)}const b=e=>{const t=Object(n.getQueryArgs)(e);return Object(n.addQueryArgs)(e,t)}},76:function(e,t,r){"use strict";var n=r(0);t.a=function(e){let{icon:t,size:r=24,...c}=e;return Object(n.cloneElement)(t,{width:r,height:r,...c})}},89:function(e,t){}}]);